﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using POSSystem.DAL;

namespace POSSystem.BLL
{
    public class View_ItemHists: _View_ItemHists
    {

        public static View_ItemHists GetItemHistsList(string imeiNo)
        {
            try
            {
                View_ItemHists itemHists = new View_ItemHists();
                itemHists.Where.IMEI.Value = imeiNo;
                itemHists.Where.BranchID.Value = Branches.CurrentBranchID;
                itemHists.Query.Load();

                return itemHists;
            }
            catch (Exception ex)
            {
                ErrorLog.WriteToFile("View_ItemHists.cs", "GetItemHistsList", ex.StackTrace);
                throw ex;
            }
        }
    }
}
